package com.example.springbootshiro.dao;

import com.example.springbootshiro.model.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionDao {
    int deleteByPrimaryKey(Integer permissionId);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(Permission record);

    //通过username获取用户的权限列表
    List<Permission> listByUsername(String username);

    //获取所有权限列表
    List<Permission> list();

}